﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AdapterPattern
{
    class EnemyRobotAdapter : EnemyAttacker
    {
        EnemyRobot theRobot;

        public EnemyRobotAdapter(EnemyRobot newRobot)
        {
            theRobot = newRobot;
        }
        public override void fireWeapon()
        {
            theRobot.smashWithHands();
        }

        public override void driveForward()
        {
            theRobot.walkForward();
        }

        public override void assignDriver(string driverName)
        {
            theRobot.reactToHuman(driverName);
        }
    }
}
